function Gradient=Gradient(Input)
    x= Input(1);
    y= Input(2);            
    Fx =-6*(1-x)*exp(-x^2-(y+1)^2)-6*(1-x)^2*x*exp(-x^2-(y+1)^2)-(5-30*x^2)*exp(-x^2-y^2)+2*(5*x-10*x^3-10*y^4)*x*exp(-x^2-y^2)-1/3*(-2*x-2)*exp(-(x+1)^2-y^2);
    Fy = 3*(1-x)^2*(-2*y-2)*exp(-x^2-(y+1)^2)+40*y^3*exp(-x^2-y^2)+2*(5*x-10*x^3-10*y^4)*y*exp(-x^2-y^2)+2/3*y*exp(-(x+1)^2-y^2);    
    Gradient = [Fx; Fy];
end